package com.leetcode.practice.self.ddd;

import com.leetcode.practice.self.entity.UserDomain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private TestService testService;

    @PutMapping("/add")
    public Long addTest(@RequestBody UserDomain userDomain){
        return testService.addTestUser(userDomain);
    }

}
